﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Reflection
{
    class StringHelper
    {
        public const string default_name_cache_proxy = ".proxy";

        public const string default_name_cache_pojo = ".pojo";

        public const string default_name_cache_bean_get = ".bean.get";

        public const string default_name_cache_bean_set = ".bean.set";


        public static string GetListFullName(Type type)
        {
            StringBuilder builder = new StringBuilder();

            builder.Append(type.GetGenericTypeDefinition().FullName).Append("[");

            foreach (Type genericType in type.GetGenericArguments())
                builder.Append("[").Append(genericType.FullName).Append("]");

            builder.Append("]");

            return builder.ToString();
        }
    }
}
